Simple text to speech tool using the tts.exe engine.

****STRONG SUGGESTION. USE ONLY ON DESKTOP WITH FILE TO CONVERT ON DESKTOP AS WELL. FOLDER/FILE EXTENTIONS AND THE LIKE CAN/WILL CAUSE ISSUES***** 

Open the "Text to Speech.exe". Opening the tts.exe without a command line will simply open and close a CMD screen. 

1. If you want a Wav format check the box. if not it will conver it to MP3. 
2. Select the voice you want to use. By default this is set to zero(0). Press F12 to get a CMD list of voices your computer has to offer. Numbers are listed in front of each name. 
3. Locate the text file you want to convert by clicking on the box [...] located next to teh "OK" button. 
4. Once the file is selected, hit "OK" to start conversion. 

{optional}
F11 will play your selection immidiatly. Hit "Pause" on your keyboard to pause and "Enter" to continue.
F10 Will allow you to test voices to see what one you like the best before converting. You can also paste a book of text into the CMD screen after choosing a voice and it will play without pausing for every comma it runs into like F10 does. Hit "Pause" on your keyboard to pause and "Enter" to continue.


The file will convert and save in the same folder the file choosen is in. It will be named the same but with a zero(0) added to the end of the name. This is part of the tts.exe program as it can be used to break down text into multiple timed blocks of audio. 

LARGE FILES WILL TAKE A WHILE. THERE IS NO PROGRESS BAR FOR THIS APP BUT A MESSAGE WILL POP UP ONCE THE FILE IS COMPLETE. FOR FULL BOOKS GIVE IT A FEW MINUTES (10-20 minutes)

****BUG: Its best to use this from your desktop or base folder without any spaces in the wording of the path WITH the file to be converted in the same folder as the exe. If its not it can cause rhe program to freeze up. Again, not my program, just a warning to save a headache or two****

tts.exe is not mine. I have simply created a user friendly interface to use with it. 
******************************************************************************************
THE TTS.EXE CAN BE USED INDEPENADANTLY. Below are the instructions on how to use through CMD call functions. The source -  https://github.com/brookhong/tts

tts [options] [text_to_read]
    -h       show this message.
    -I       interactive mode.
    -F       list all formats supported.
    -V       list all voices installed.
    -f <format index>        use the indexed format.
    -v <voice index>         use the indexed voice.
    -i <filename>    read from the file.
    -o <filename>    output to the .wav file.
    -l       output .lrc files.
    -t       convert to .mp3 file.
    -s <minutes>     split the output every X minutes, default by 5.
Example

1 tts.exe -F to list all formats available on your computer.

0 SPSF_12kHz16BitStereo
1 SPSF_16kHz16BitMono
2 SPSF_16kHz16BitStereo
3 SPSF_22kHz16BitMono
4 SPSF_22kHz16BitStereo
5 SPSF_24kHz16BitStereo
6 SPSF_32kHz16BitStereo
7 SPSF_44kHz16BitMono
8 SPSF_44kHz16BitStereo
9 SPSF_48kHz16BitMono
10 SPSF_48kHz16BitStereo
2 tts.exe -V to list all voices available on your computer.

0 Microsoft Anna - English (United States)
1 ATT DTNV1.4 Crystal16
2 ATT DTNV1.4 Mike16
3 ATT DTNV1.4 Audrey16
4 Microsoft Lili - Chinese (China)
5 VW Paul
3 now read text with format SPSF_48kHz16BitStereo and voice ATT DTNV1.4 Crystal16:

tts.exe -f 10 -v 1 "look, here is brook"

tts.exe -f 10 -v 1 "look, here is brook" -o look to generate look.wav instead of reading it.

tts.exe -f 10 -v 1 "look, here is brook" -o look -t to generate look.mp3 instead of reading it.

Build

cl tts.cpp lame.lib libmp3lame-static.lib mpglib-static.lib